From: Jasper St. Pierre Date: Tue, 27 Nov 2012 18:15:50 +0000 (-0500) Subject: panel: Remove a bit of duplicated code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5363 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7bd7b53845926f7d3d26c2ae9018e81cb9dced2b;p=gnome-shell.git panel: Remove a bit of duplicated code The play() method does what we want here. --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 0388acf80..9ac0db8ab 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -132,10 +132,8 @@ const AnimatedIcon = new Lang.Class({ _animationsLoaded: function() { this._isLoaded = true; - if (this._isPlaying) { - this._showFrame(0); - this._timeoutId = Mainloop.timeout_add(ANIMATED_ICON_UPDATE_TIMEOUT, Lang.bind(this, this._update)); - } + if (this._isPlaying) + this.play(); }, _onDestroy: function() {